package dmeo1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class demo
{
    public static void main(String[] args) throws Exception
    {
        person p=new person();
        p.hello();

        Class c=Class.forName("dmeo1.person");
        person p1=(person)c.newInstance();
        p1.hello();

        AnnotationConfigApplicationContext ctx=new AnnotationConfigApplicationContext("dmeo1");
        person p2=ctx.getBean(person.class);
        p2.hello();
    }
}
